# Based on https://github.com/leonsteinhaeuser/project-beta-automations

name: "Creating version with semantic release on merging Issues/PRs"

on:
  push:
    branches: [master]

jobs:
  merge-content-to-project:
    name: "Add Content to project"
    runs-on: ubuntu-latest
    
    steps:
      - name: Check out code into the Go module directory
        uses: actions/checkout@v3
      
      - name: "Release with semantic-release"
        run: npx semantic-release --debug
        env:
          # GitHub sets this automatically
          GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
